package com.gxar.quick.ar.server.base.model.exchange.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/2/22 15:54
 */
@Data
@ApiModel("操作兑换品模型")
public class BaseExchangeItemOperateVO {

    @ApiModelProperty("名称")
    @JSONField(name = "name")
    @JsonProperty("name")
    @NotBlank(message = "名称不能为空")
    private String name;
    @ApiModelProperty("价格")
    @JSONField(name = "price")
    @JsonProperty("price")
    @NotNull(message = "价格不能为空")
    private BigDecimal price;
    @ApiModelProperty("视频介绍")
    @JSONField(name = "introduction")
    @JsonProperty("introduction")
    private String introduction;
    @ApiModelProperty("模板ID")
    @JSONField(name = "works_ids")
    @JsonProperty("works_ids")
    private List<Long> worksIds;

    @ApiModelProperty("兑换方式 1-手动，2-自动，3-扫码。默认：2。若开启活动传3")
    @JSONField(name = "method")
    @JsonProperty("method")
    private Integer method;

    @ApiModelProperty("活动ID")
    @JSONField(name = "activity_id")
    @JsonProperty("activity_id")
    private String activityId;

    @ApiModelProperty("活动是否启用")
    @JSONField(name = "activity_enable")
    @JsonProperty("activity_enable")
    private Boolean activityEnable;

    @ApiModelProperty("小程序码的版本 正式版为 release，体验版为 trial，开发版为 develop。默认是正式版")
    @JSONField(name = "env")
    @JsonProperty("env")
    private String env;

}
